export const rules = {
    menuName: [
        { required: true, message: '请输入菜单名称', trigger: 'blur' },
        { min: 2, max: 12, message: '用户名长度2-12位', trigger: 'blur' }
    ],
    menuType: [
        {
            required: true,
            message: '请选择菜单类型',
            trigger: 'change'
        }
    ],
    isExternal: [
        {
            required: true,
            message: '请选择是否跳出',
            trigger: 'change'
        }
    ],
    // parentId: [
    //     {
    //         required: true,
    //         message: '请选择上级菜单',
    //         trigger: 'change'
    //     }
    // ],
    path: [
        {
            required: true,
            message: '请输入路径',
            trigger: 'blur'
        }
    ]
};
